package com.ybxx.base.service.impl;

import java.util.List;

import com.ybxx.base.dao.ResHydropowerDao;
import com.ybxx.base.model.ResHydropower;
import com.ybxx.base.service.ResHydropowerService;
import com.ybxx.core.command.QueryFilter;
import com.ybxx.core.dao.GenericDao;
import com.ybxx.core.service.impl.BaseServiceImpl;
import com.ybxx.core.web.paging.PagingBean;

public class ResHydropowerServiceImpl extends BaseServiceImpl<ResHydropower>
		implements ResHydropowerService {
	private ResHydropowerDao resHydropowerDao;
	public ResHydropowerServiceImpl(ResHydropowerDao dao) {
		super(dao);
		this.resHydropowerDao=dao;
		// TODO Auto-generated constructor stub
	}
	public List<ResHydropower> loadResHydropowers(String rcode){
		String hql="from ResHydropower rh where rh.residents.rcode='"+rcode+"'";
		return this.resHydropowerDao.findByHql(hql, null);
	}

}
